//
//  CommonModel.h
//  Youhu
//
//  Created by 王先森 on 2017/1/19.
//  Copyright © 2017年 ApeStar. All rights reserved.
//

@class EnumModel;

@interface CommonModel : ApeModel

@property (nonatomic, strong) NSArray<EnumModel *> *chat;
@property (nonatomic, strong) NSArray<EnumModel *> *app;
@property (nonatomic, strong) NSArray<EnumModel *> *RECHARGE;
@property (nonatomic, strong) NSArray<EnumModel *> *WITHDRAW;
@property (nonatomic, strong) NSArray<EnumModel *> *complain;
@property (nonatomic, strong) NSArray<EnumModel *> *HAND_ENABLE; //是否编辑
@property (nonatomic, strong) NSArray<EnumModel *> *TIME_INTERVAL; //闪电侠价格
@property (nonatomic, strong) NSArray<EnumModel *> *DOOR_PICKING; //指派闪电侠价格
@property (nonatomic, strong) NSArray<EnumModel *> *TALENT_DEPOSIT; //达人押金
@property (nonatomic, strong) NSArray<EnumModel *> *CANCEL_REASON; //取消订单理由
@property (nonatomic, strong) NSArray<EnumModel *> *STAR4; //评论4以下
@property (nonatomic, strong) NSArray<EnumModel *> *STAR5; //评论5
@property (nonatomic, strong) NSArray<EnumModel *> *INS_TYPE; //商家类型
@property (nonatomic, strong) NSArray<EnumModel *> *week; //商家日期
@property (nonatomic, strong) NSArray<EnumModel *> *ACTIVITY; //当前的活动ID
@property (nonatomic, assign) double deposit;//押金
@property (nonatomic, assign) double ins_deposit;//机构押金
@property (nonatomic, assign) double talent_deposit;//达人押金
@property (nonatomic, assign) NSTimeInterval time;//服务器时间（毫秒）


- (EnumModel *)chatModelWithCode:(NSString *)code;


/**
 是否允许充值任意金额

 @return 是否允许充值任意金额
 */
- (BOOL)enableCustomerChargeMoney;


/**
  根据枚举配置的时间段
 
 @return 该时间段的价格
 */
- (EnumModel *)timeInterVal;

//达人押金
- (double)talent_deposit;

- (NSString *)insTypeStringWithCodesArray:(NSArray<NSNumber *> *)insTypeCodes;

- (NSString *)weekDaysStringWithCodesArray:(NSArray<NSNumber *> *)weekdays;

- (NSInteger )currentActivityID;

@end


@interface EnumModel : ApeModel

@property (nonatomic, copy) NSString * code;
@property (nonatomic, copy) NSString * label;

@end
